﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/functon.master" AutoEventWireup="true" CodeFile="RoomCustomer.aspx.cs" Inherits="RoomCustomer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="stylesheet" href="css/admir.css" />
     <link rel="stylesheet" href="css/astyle.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="admir_l">
        <br />
        <a href="Add_RoomCategory.aspx">增加房间信息</a><br />
        <a href="Search_RoomCatagory.aspx">查看房间信息</a><br />
        <a href="Update_RoomCategory.aspx">更改房间信息</a><br />
        <a href="Delete_RoomCategory.aspx">删除房间信息</a><br />
        <a href="Customers.aspx">查看客户信息</a><br />
        <a href="RoomCustomer.aspx">查看已住客房信息</a><br />
        <a href="RoomStatus.aspx">查看房间状态 </a>
    </div>
    <div class="admir_r">
        <table align="center">
            <tr align="center">
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="RFloor" DataValueField="RFloor" Width="120px" Height="30px"></asp:DropDownList>                  
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:HotelManagementConnectionString2 %>" SelectCommand="SELECT [RFloor] FROM [HM_RoomDropDownList]"></asp:SqlDataSource>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="显示"  Height="30px" Width="120px" OnClick="Button1_Click"/>
                </td>
                <td>设置天数：
                    <asp:TextBox ID="Days" runat="server" Height="30px" Width="100px"></asp:TextBox>天
                </td>
                <td>&nbsp;&nbsp;&nbsp; 总金额数：
                    <asp:TextBox ID="Money" runat="server" Height="30px" Width="100px"></asp:TextBox>元
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
                        <Columns>
                            <asp:BoundField DataField="roomno" HeaderText="房间号" />
                            <asp:BoundField DataField="rtype" HeaderText="房间类型" />
                            <asp:BoundField DataField="name" HeaderText="客户姓名" />
                            <asp:BoundField DataField="idcard" HeaderText="客户身份证号" />
                            <asp:BoundField DataField="livedtime" HeaderText="已住天数" />
                            <asp:BoundField DataField="rmoney1" HeaderText="需付金额" />
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                </td>
                <td align="right">
                    <asp:Button ID="Set_Days" runat="server" Text="设置"  Height="30px" Width="120px" OnClick="Set_Days_Click"/>
                </td>
                <td align="right">
                    <asp:Button ID="Set_Money" runat="server" Text="获取总金额"  Height="30px" OnClick="Set_Money_Click"/>
                </td>
            </tr>
            <tr>
                 <td colspan="4" align="right">
                    <a href="RoomStatus.aspx" style="font-size:32px">房间状态查看和管理页面！</a>
                </td>
            </tr>
        </table>
    </div>
        
</asp:Content>

